package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 erp_order
 *
 * @author ruoyi
 * @date 2025-04-21
 */
public class ErpOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 货物ID */
    @Excel(name = "货物ID")
    private Long goodsId;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    /** 额外成本 */
    @Excel(name = "额外成本")
    private BigDecimal extraCost;

    /** 订货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 送货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "送货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setSupplierId(Long supplierId)
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId()
    {
        return supplierId;
    }

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }

    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    public Long getQuantity()
    {
        return quantity;
    }

    public void setUnitPrice(BigDecimal unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice()
    {
        return unitPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }

    public void setExtraCost(BigDecimal extraCost)
    {
        this.extraCost = extraCost;
    }

    public BigDecimal getExtraCost()
    {
        return extraCost;
    }

    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }

    public void setDeliveryTime(Date deliveryTime)
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime()
    {
        return deliveryTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("supplierId", getSupplierId())
                .append("goodsId", getGoodsId())
                .append("quantity", getQuantity())
                .append("unitPrice", getUnitPrice())
                .append("totalPrice", getTotalPrice())
                .append("extraCost", getExtraCost())
                .append("orderTime", getOrderTime())
                .append("deliveryTime", getDeliveryTime())
                .append("createTime", getCreateTime())
                .toString();
    }
}

